﻿using System;
using System.Data;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;
using log4net;
using System.Reflection;

namespace AnyOffice.general.vehicle.manage
{
    public partial class index1 :ModulePage
    {

        private static ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);

      
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.Page.IsPostBack)
            {
                DataTable table = new VehicleDao().SelectAll(base.Conn);
                if (table.Rows.Count == 0)
                {
                    this.litMessage.Text = base.ShowMessage("暂无车辆信息");
                }
                else
                {
                    this.rptVehicle.DataSource = table;
                    this.rptVehicle.DataBind();
                }
            }
        }
 

    }
}
